﻿using System;
using Microsoft.SharePoint.Administration;

namespace spSitePro.TagCloudWP
{
	internal class ErrorUtils
	{
		public static void LogError(Exception ex)
		{
			SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("spSite.pro",
																				TraceSeverity.Monitorable,
																				EventSeverity.Error),
												TraceSeverity.Unexpected,
												ex.Message,
												ex.StackTrace);
		}
	}
}
